<template>
  <div class="app-container home">
    <div class="welcome-section">
      <div class="welcome-content">
        <h1 class="welcome-title">欢迎使用高考志愿填报系统</h1>
        <p class="welcome-subtitle">科学规划未来 · 精准选择人生</p>
      </div>
    </div>
    
    <el-row :gutter="24" class="main-content">
      <el-col :sm="24" :lg="16">
        <el-card class="guide-card" shadow="hover">
          <div slot="header" class="card-header">
            <span><i class="el-icon-s-opportunity"></i> 使用指南</span>
          </div>
          <div class="guide-steps">
            <div class="step-item">
              <div class="step-number">1</div>
              <div class="step-content">
                <h4>信息查询</h4>
                <p>在院校查询页面查询志愿院校和专业的历年分数线、招生计划等信息</p>
              </div>
            </div>
            <div class="step-item">
              <div class="step-number">2</div>
              <div class="step-content">
                <h4>个人信息</h4>
                <p>填写个人基本信息、高考成绩和志愿意向等相关资料</p>
              </div>
            </div>
            <div class="step-item">
              <div class="step-number">3</div>
              <div class="step-content">
                <h4>测评分析</h4>
                <p>进行专业兴趣测评和志愿适配度分析，获取个性化推荐</p>
              </div>
            </div>
            <div class="step-item">
              <div class="step-number">4</div>
              <div class="step-content">
                <h4>志愿填报</h4>
                <p>根据测评结果和个人意向，完成高考志愿的正式填报</p>
              </div>
            </div>
          </div>
        </el-card>
      </el-col>

      <el-col :sm="24" :lg="8">
        <el-card class="notice-card" shadow="hover">
          <div slot="header" class="card-header">
            <span><i class="el-icon-bell"></i> 系统公告</span>
          </div>
          <div class="notice-list">
            <div class="notice-item">
              <div class="notice-time">2025-05-20</div>
              <div class="notice-content">志愿第一批填报已经开启，请同学们及时登录系统进行填报。</div>
            </div>
            <div class="notice-item">
              <div class="notice-time">2025-05-18</div>
              <div class="notice-content">系统已更新最新院校招生计划和分数线数据，欢迎查询使用。</div>
            </div>
            <div class="notice-item">
              <div class="notice-time">2025-05-15</div>
              <div class="notice-content">填报过程中如有疑问，请通过下方联系方式咨询。</div>
            </div>
          </div>
        </el-card>

        <el-card class="contact-card" shadow="hover">
          <div slot="header" class="card-header">
            <span><i class="el-icon-service"></i> 联系我们</span>
          </div>
          <div class="contact-list">
            <div class="contact-item">
              <i class="el-icon-user"></i>
              <span>咨询老师：王老师、李老师</span>
            </div>
            <div class="contact-item">
              <i class="el-icon-phone"></i>
              <span>咨询电话：12345678910</span>
            </div>
            <div class="contact-item">
              <i class="el-icon-chat-line-square"></i>
              <span>QQ咨询群：88888888</span>
            </div>
            <div class="contact-item">
              <i class="el-icon-chat-dot-square"></i>
              <span>微信公众号：高考志愿填报</span>
            </div>
          </div>
        </el-card>
      </el-col>
    </el-row>

    <el-row :gutter="24" class="statistics-section">
      <el-col :sm="24" :md="12" :lg="6">
        <div class="stat-card">
          <div class="stat-icon">
            <i class="el-icon-school"></i>
          </div>
          <div class="stat-info">
            <div class="stat-number">2300+</div>
            <div class="stat-title">高校数量</div>
          </div>
        </div>
      </el-col>
      <el-col :sm="24" :md="12" :lg="6">
        <div class="stat-card">
          <div class="stat-icon">
            <i class="el-icon-reading"></i>
          </div>
          <div class="stat-info">
            <div class="stat-number">56000+</div>
            <div class="stat-title">专业数量</div>
          </div>
        </div>
      </el-col>
      <el-col :sm="24" :md="12" :lg="6">
        <div class="stat-card">
          <div class="stat-icon">
            <i class="el-icon-data-line"></i>
          </div>
          <div class="stat-info">
            <div class="stat-number">98.7%</div>
            <div class="stat-title">满意度</div>
          </div>
        </div>
      </el-col>
      <el-col :sm="24" :md="12" :lg="6">
        <div class="stat-card">
          <div class="stat-icon">
            <i class="el-icon-user-solid"></i>
          </div>
          <div class="stat-info">
            <div class="stat-number">50万+</div>
            <div class="stat-title">用户数量</div>
          </div>
        </div>
      </el-col>
    </el-row>
  </div>
</template>

<script>
export default {
  name: "Index",
  data() {
    return {
      // 版本号
      version: "3.8.2"
    };
  },
  methods: {
    goTarget(href) {
      window.open(href, "_blank");
    },
  },
};
</script>

<style scoped lang="scss">
.home {
  font-family: 'Helvetica Neue', Helvetica, 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', '微软雅黑', Arial, sans-serif;
  color: #333;
  background-color: #f5f7fa;
  padding: 20px 0;
}

.welcome-section {
  background: linear-gradient(120deg, #3370ff, #5186ff);
  color: white;
  padding: 40px 20px;
  border-radius: 8px;
  margin-bottom: 24px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  text-align: center;
  
  .welcome-title {
    font-size: 32px;
    font-weight: 600;
    margin-bottom: 10px;
  }
  
  .welcome-subtitle {
    font-size: 18px;
    font-weight: 300;
    opacity: 0.9;
  }
}

.main-content {
  margin-bottom: 24px;
}

.card-header {
  display: flex;
  align-items: center;
  
  i {
    margin-right: 8px;
    font-size: 18px;
  }
  
  span {
    font-size: 16px;
    font-weight: 600;
  }
}

.guide-card {
  height: 100%;
  
  .guide-steps {
    padding: 10px 0;
    
    .step-item {
      display: flex;
      margin-bottom: 24px;
      
      &:last-child {
        margin-bottom: 0;
      }
      
      .step-number {
        width: 36px;
        height: 36px;
        border-radius: 50%;
        background-color: #3370ff;
        color: white;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 18px;
        font-weight: bold;
        margin-right: 16px;
        flex-shrink: 0;
      }
      
      .step-content {
        h4 {
          margin: 0 0 8px 0;
          font-size: 16px;
          color: #333;
        }
        
        p {
          margin: 0;
          color: #666;
          line-height: 1.6;
        }
      }
    }
  }
}

.notice-card {
  margin-bottom: 24px;
  
  .notice-list {
    .notice-item {
      padding: 12px 0;
      border-bottom: 1px solid #f0f0f0;
      
      &:last-child {
        border-bottom: none;
      }
      
      .notice-time {
        font-size: 12px;
        color: #999;
        margin-bottom: 8px;
      }
      
      .notice-content {
        color: #333;
        line-height: 1.6;
      }
    }
  }
}

.contact-card {
  .contact-list {
    .contact-item {
      display: flex;
      align-items: center;
      padding: 12px 0;
      border-bottom: 1px solid #f0f0f0;
      
      &:last-child {
        border-bottom: none;
      }
      
      i {
        font-size: 18px;
        color: #3370ff;
        margin-right: 12px;
      }
      
      span {
        color: #333;
      }
    }
  }
}

.statistics-section {
  .stat-card {
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 2px 12px 0 rgba(0, 0, 0, 0.05);
    padding: 20px;
    display: flex;
    align-items: center;
    transition: all 0.3s;
    height: 100%;
    
    &:hover {
      transform: translateY(-5px);
      box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    }
    
    .stat-icon {
      width: 60px;
      height: 60px;
      border-radius: 50%;
      background-color: rgba(51, 112, 255, 0.1);
      display: flex;
      align-items: center;
      justify-content: center;
      margin-right: 16px;
      
      i {
        font-size: 28px;
        color: #3370ff;
      }
    }
    
    .stat-info {
      .stat-number {
        font-size: 24px;
        font-weight: bold;
        color: #333;
        margin-bottom: 4px;
      }
      
      .stat-title {
        font-size: 14px;
        color: #999;
      }
    }
  }
}

// 响应式调整
@media (max-width: 768px) {
  .welcome-section {
    padding: 30px 15px;
    
    .welcome-title {
      font-size: 24px;
    }
    
    .welcome-subtitle {
      font-size: 16px;
    }
  }
  
  .statistics-section {
    .el-col {
      margin-bottom: 16px;
    }
  }
}
</style>
